<!DOCTYPE html>
<html lang="zh-CN" style="height: 100%">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>城内网--智慧校园</title>
        <link rel="Shortcut Icon" href="./images/logo.png" />
        <meta name="description" content="本网是针对学生的生活平台，包括学习、考试、交友、交流、商城" />
        <meta name="keywords" content="城内,城内网,智慧大学,智慧校园,在线教学,考勤系统,毕业设计" />
        <link href="{$Think.const.CSS_URL}common.css" rel="stylesheet" />
        <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
        <script src="{$Think.const.JS_URL}jquery-1.12.3.min.js"></script>
        <script src="/layui/layui.js" charset="utf-8"></script>
        <script src="{$Think.const.JS_URL}common.js"></script>

        <script>
            opencookie();
            //退出
            function logout() {
                $.ajax({
                    type: 'get',
                    url: "{:url('index/my/logout')}",
                    dataType: 'text',
                    data: {},
                    success: function (data) {
                        parent.location.href = "{:url('index/my/index')}";
                    },
                });
            }
        </script>

        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <!--[if lte IE 9]>
            <script src="{$Think.const.JS_URL}respond.js"></script>
            <script src="{$Think.const.JS_URL}html5shiv.js"></script>
        <![endif]-->

        <!--[if lt IE 8]>
            <script>
                alert('IE浏览器版本过低，请下载并使用官方提供的google浏览器');
                window.location.href = 'http://www.chengneiwang.com/public/static/chrome_xp_installer.rar';
            </script>
        <![endif]-->
        <style>
            html,
            body {
                height: 100%;
            }
        </style>
    </head>

    <body>
        <!-- 顶部菜单 -->
        <ul class="layui-nav">
            <li class="layui-nav-item">
                <a href="{:url('index/score/index')}"><span style="font-size: 1.5em">成绩管理系统</span></a>
            </li>

            <li class="layui-nav-item">
                <a href="#">
                    【
                    <span id="title000">广东工业大学华立学院</span>
                    】
                </a>
            </li>

            <li class="layui-nav-item" style="margin-left: 200px">
                <a href="{:url('index/score/index')}">首页</a>
            </li>

            {if condition="session('userclass') eq 3 or session('userclass') eq 10"}
            <li class="layui-nav-item">
                <a href="{:url('index/score/course_manage')}">成绩录入</a>
            </li>
            {/if}
            {if condition="session('userclass') eq 4 or session('userclass') eq 10"}
            <li class="layui-nav-item">
                <a href="{:url('index/score/public_result')}">成绩查询</a>
            </li>
            {/if}
            {if condition="session('userclass') eq 1 or session('userclass') eq 10 or session('userclass') eq 2"}
            <li class="layui-nav-item">
                <a href="{:url('index/score/scoreCheck')}">成绩审批</a>
            </li>
             <li class="layui-nav-item">
                <a href="{:url('index/score/scoreModify')}">成绩修改审批</a>
            </li>6
            {/if}

            <!-- <li class="layui-nav-item">
                <a href="#">
                    <i class="layui-icon layui-icon-app"></i>
                    管理中心
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:url('index/score/course_manage')}">管理课程</a></dd>
                    <dd><a href="{:url('index/score/scoreModify')}">成绩修改审批</a></dd>
                </dl>
            </li> -->

            {if condition="session('uid') eq null "}
            <li class="layui-nav-item" style="float: right"><a href="#">注册</a></li>
            <li class="layui-nav-item" style="float: right"><a href="{:url('my/login')}">登录</a></li>
            {else /}
            <li class="layui-nav-item" style="float: right; margin-right: 50px">
                <a href="#" onclick="logout()">退出</a>
            </li>
            <li class="layui-nav-item" style="float: right">
                <a href="#">
                    <i class="layui-icon layui-icon-friends"></i>
                    {switch name=session('userclass')} {case value="2" break 1}教务处{/case} {case value="1" break 1}{php}echo session('truename'){/php}.学院{/case} {case value="3" break 1}教师{/case} {case value="4"}{php}echo session('truename'){/php}.小明同学{/case} {case value="10"}{php}echo session('truename'){/php}.管理员{/case} {/switch}
                </a>
            </li>
            {/if}
        </ul>

        <div class="layui-container-fluid">
            <div class="layui-row">
                <!-- 左边  -->
                <div class="layui-col-xs11" style="background-color: red"></div>

                <!-- 右边 -->
                <div class="layui-col-xs1" style="background-color: blue"></div>
            </div>
        </div>
        <script>
            //用选择的学校名替换“城内网”
            nowselectedschoolid = getCookie('nowselectedschoolid');
            nowselectedschoolname = getCookie('nowselectedschoolname');
            if (nowselectedschoolid == 0 || nowselectedschoolid == undefined || nowselectedschoolid == null) {
                $('#title000').text('广东工业大学华立学院');
            } else {
                $('#title000').text(nowselectedschoolname);
            }
        </script>
    </body>
</html>
